<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/19
 * Time: 17:50
 * 品牌控制器
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class ProdTempCreationMaskRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'],
            'namespace'=>'Backstage', 'prefix' =>'backstage/prod-temp-creation-mask/',], function ($router) {
            $router->get('creation-mask-list', [ 'uses' => 'ProdTempCreationMasksController@getCreationMaskList'])->name('get.prod-temp-creation-mask.creation-mask-list');
            $router->get('add-creation-mask', [ 'uses' => 'ProdTempCreationMasksController@addCreationMasks'])->name('get.prod-temp-creation-mask.creation-mask-list.add-creation-mask');
            $router->get('update-creation-mask', [ 'uses' => 'ProdTempCreationMasksController@updateCreationMaskPage'])->name('get.prod-temp-creation-mask.creation-mask-list.update-creation-mask');
            $router->post('update-creation-mask', [ 'uses' => 'ProdTempCreationMasksController@saveUpdateCreationMask'])->name('post.prod-temp-creation-mask.creation-mask-list.update-creation-mask');
            $router->post('add-creation-mask', [ 'uses' => 'ProdTempCreationMasksController@saveCreationMask'])->name('post.prod-temp-creation-mask.creation-mask-list.add-creation-mask');
            $router->post('update-sort', [ 'uses' => 'ProdTempCreationMasksController@postUpdateSort'])->name('post.prod-temp-creation-mask.creation-mask-list.update-sort');
            $router->post('delete-creation-mask', [ 'uses' => 'ProdTempCreationMasksController@deleteCreationMask'])->name('post.prod-temp-creation-mask.creation-mask-list.delete-creation-mask');
        });
    }
}